<template>
    <div class="py-[60px]">
        <n-result :status="error.statusCode+''" :title="error.statusMessage" description="生活总归带点荒谬">
            <template #footer>
                <n-button @click="handleError">返回首页</n-button>
            </template>
        </n-result>
    </div>
</template>


<script setup>
import {NResult,NButton} from 'naive-ui'
const props = defineProps({
    error: Object
})

const handleError = () => clearError({ redirect: '/' })
</script>
